<template>
  <div>
    <div class="title">
      <div style="font-size: 20px; font-weight: bold;width: 82px;">{{ title }}</div>
      <div  v-if="!$slots.default" style="font-size: 20px;height: 40px;padding-top: 7px;">{{ data.date }}
      </div>
      <slot></slot>
    </div>
    <el-divider></el-divider>
    <div class="content">
      <h3>金额：￥{{ data.amount }}</h3>
      <h3>数量：{{ data.count }}</h3>
    </div>
  </div>
</template>

<script>
export default {
  name: "welTopModule",
  data() {
    return {};
  },
  props: ["data", "title"],
};
</script>

<style lang="scss" scoped>
.title {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
</style>
